package com.ikingtech.platform.service.pay.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ikingtech.platform.service.pay.entity.CashierSupplierDO;
import com.ikingtech.platform.service.pay.mapper.CashierSupplierMapper;

/**
 * @author tie yan
 */
public class CashierSupplierService extends ServiceImpl<CashierSupplierMapper, CashierSupplierDO> {

    public CashierSupplierDO getBySupplierType(String supplierType) {
        return this.getOne(Wrappers.<CashierSupplierDO>lambdaQuery().eq(CashierSupplierDO::getType, supplierType));
    }
}
